<template>
  <div class="q-pa-md">
    <div class="q-gutter-sm">
      <t-badge color="teal"> Model: {{ model }} </t-badge>
      <t-badge color="purple" text-color="white" class="q-ma-md">
        Mask: YYYY-MM-DD HH:mm
      </t-badge>
    </div>

    <div class="q-gutter-md row items-start">
      <t-date v-model="model" mask="YYYY-MM-DD HH:mm" color="purple" />
      <t-time v-model="model" mask="YYYY-MM-DD HH:mm" color="purple" />
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        model: ref('2019-02-22 21:02'),
      };
    },
  };
</script>
